package com.ruoyi.customermerchants.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.entity.SysUser;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 客户线索对象 crm_customer_merchants
 * 
 * @author hct
 * @date 2022-02-16
 */
@Data
public class CrmCustomerMerchants extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 注册地址 */
    @Excel(name = "注册地址")
    private String companyAddress;

    /** 1是企业2是个人 */
    @Excel(name = "1是企业2是个人")
    private Integer companyType;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String companyName;

    /** 客户描述 */
    @Excel(name = "客户描述")
    private String companyDesc;

   
    /** 联系邮箱 */
    @Excel(name = "联系邮箱")
    private String email;

    /** 所属行业名称 */
    @Excel(name = "所属行业名称")
    private String industryname;

    /** 行业id */
    @Excel(name = "行业id")
    private String industryId;

    /** 手机号联系电话 */
    @Excel(name = "手机号联系电话")
    private String mobile;

    /** 联系人 */
    @Excel(name = "联系人")
    private String name;

    /** 职务 */
    @Excel(name = "职务")
    private String post;

    /** 规模 */
    @Excel(name = "规模")
    private String scale;

    /** 通讯地址 */
    @Excel(name = "通讯地址")
    private String address;

    /** 状态正常1是关闭2是转客户 */
    @Excel(name = "状态0正常1是关闭2是转客户")
    private Integer status;

   
    /** 营业范围 */
    @Excel(name = "营业范围")
    private String businessScope;

    /** 公司状态 */
    @Excel(name = "公司状态")
    private String companystatus;

    /** 注册资金 */
    @Excel(name = "注册资金")
    private String registerMoney;

    /** 注册成立时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "注册成立时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date registerTime;

    /** 身份编码 */
    @Excel(name = "身份编码")
    private String socialCreditCode;

    /** logo */
    @Excel(name = "CompanyLogo")
    private String CompanyLogo;

    /** 经营状态 */
    @Excel(name = "经营状态")
    private String managementType;

    /** 企业性质 */
    @Excel(name = "企业性质")
    private String companyNature;

    /** 登记机关 */
    @Excel(name = "登记机关")
    private String registrationAuthority;

    /** 法人 */
    @Excel(name = "法人")
    private String legalPerson;

    /** 分配人 */
    @Excel(name = "分配人")
    private Long userId;
    /**用户信息**/
    private SysUser sysUser;
    /** 主题名称 */
    @Excel(name = "主题名称")
    private String clueName;

    /** 线索来源 */
    @Excel(name = "线索来源")
    private String source;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("companyAddress", getCompanyAddress())
            .append("companyType", getCompanyType())
            .append("companyName", getCompanyName())
            .append("companyDesc", getCompanyDesc())
            .append("createTime", getCreateTime())
            .append("email", getEmail())
            .append("industryname", getIndustryname())
            .append("industryId", getIndustryId())
            .append("mobile", getMobile())
            .append("name", getName())
            .append("post", getPost())
            .append("scale", getScale())
            .append("address", getAddress())
            .append("status", getStatus())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("businessScope", getBusinessScope())
            .append("companystatus", getCompanystatus())
            .append("registerMoney", getRegisterMoney())
            .append("registerTime", getRegisterTime())
            .append("socialCreditCode", getSocialCreditCode())
            .append("managementType", getManagementType())
            .append("companyNature", getCompanyNature())
            .append("registrationAuthority", getRegistrationAuthority())
            .append("legalPerson", getLegalPerson())
            .append("userId", getUserId())
            .append("clueName", getClueName())
            .append("source", getSource())
            .append("remark", getRemark())
            .toString();
    }
}
